class My_arrray<T>{
    public Object[] array =new Object[10];

    public void set(int pos,T val){
        this.array[pos]= val;
    }
    public T get(int pos){
        return (T) array[pos];
    }
}

class A <T>{

}
public class Test {
    public static void main(String[] args) {
        My_arrray<Integer> my_arrray = new My_arrray();
        my_arrray.set(0,"hahh");
        my_arrray.set(1,10);
    }
}
